#!/bin/bash
export ii=$II
export i=$I
export lsvn_loc=
if [[ "$1" = "-l" ]] ; then
	export lsvn_loc=$2
	shift 2
fi
if [[ "$1" = "-r" ]] ; then
  shift 2
fi
dir="$1"
fn="$2"
nfn="$3"
if [[ -z "$nfn" ]] ; then
  echo "No log new file name" >&2
  exit 1
fi
#set -x
if [[ -n "$lsvn_loc" ]] ; then
	export SVN_LOC=$lsvn_loc
elif [[ -z "$SVN_LOC" ]] ; then
	export SVN_LOC=$CVS_LOC
fi
cd "$dir"
$SVN_LOC/svn --username ibuntonjr --password "$ibuntonjr_pass" mv "$fn" "$nfn" 2>&1 | tee -a $ii/whymv.log
#cvs admin -kb $fn
